﻿namespace Demo_test.Models.DKTV
{
    using System;
    using System.Linq;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("Username")]
    public partial class Username
    {
        public int Id { get; set; }

        [StringLength(250)]
        public string Name { get; set; }

        [StringLength(50)]
        public string GioiTinh { get; set; }

        [StringLength(50)]
        public string DienThoai { get; set; }

        public DateTime? Ngaysinh { get; set; }
 
       
      // [StringLength(250)]
      // public string SoThich { get; set; }

        
        public Username()
        {
            SoThich = new[]
            {
                new SothichViewModel { Name = "Bóng đá" },
                new SothichViewModel { Name = "Cầu lông" },
                new SothichViewModel { Name = "Nấu ăn" },
                new SothichViewModel { Name = "chụp hình" },
                new SothichViewModel { Name = "Du lich" },
                new SothichViewModel { Name = "múa " },
            }.ToList();
        }
        public List<SothichViewModel> SoThich { get; set; }
      

        [StringLength(50)]
        public string Tinh { get; set; }

        [StringLength(50)]
        public string Huyen { get; set; }
       
    }
    public class SothichViewModel
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public bool Checked { get; set; }
    }
}
